<%@ page language="java" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	System.out.print(basePath);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>shirodemo login page</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%=basePath%>/source/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
	   $("#validateCodeImg").click(function(){
		  $(this).attr('src',"<%=basePath%>/validateCode.do?"+new Date().getTime())
	   })			  
	})
</script>
</head>

<body>
	<form action="<%=basePath%>/adLogin.do" method="post">
		<ul>
			<li>姓 名：<input type="text" name="account" />
			</li>
			<li>密 码：<input type="password" name="password" />
			</li>
			
			<li>验证码：<input type="text" name="validateCode" />
			<img id="validateCodeImg" src="<%=basePath%>/validateCode.do" /></li>
			<li><input type="submit" value="确认" /></li>
		</ul>
	</form>
</body>
</html>